package config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import spitter.Spitter;
import spitter.manager.Manager;

/**
 * config
 * 通过contextLoaderListener创建的应用上下文
 * 将所有的配置，都配置的ContextLoaderListener中
 * 2018/9/25-15:10
 * 科达科技股份有限公司-版权所有
 * Created by wuqiang on 15:10.
 */
@Configuration
@ComponentScan(basePackageClasses = Spitter.class)//开启自动扫描
public class RootConfig  {

    @Bean
    public Manager manager(){
        return new Manager();
    }
}
